package com.zzy.websocketDemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@CrossOrigin
public class WebsocketController {

    @RequestMapping("/hello")
    @ResponseBody
    public String index() {
        return "index";
    }

}
